<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!-- saved from url=(0045)http://localhost:8080/EMIS/getallcontractinfo -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../secondCSS/H-ui.min.css">
<link rel="stylesheet" type="text/css" href="../secondCSS/H-ui.admin.css">
<link rel="stylesheet" type="text/css" href="../secondCSS/iconfont.css">
<link rel="stylesheet" type="text/css" href="../secondCSS/icheck.css">
<link rel="stylesheet" type="text/css" href="../secondCSS/skin.css" id="skin">
<link rel="stylesheet" type="text/css" href="../secondCSS/style.css">
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>房间管理</title>
<link rel="stylesheet" href="../secondCSS/layer.css" id="layui_layer_skinlayercss"><link href="../secondCSS/WdatePicker.css" rel="stylesheet" type="text/css"></head>

<body>
<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span>合同基本信息管理</nav>
<div class="page-container">  
	<div class="mt-20">
		<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper no-footer">
		  <table class="table table-border table-bordered table-hover table-bg table-sort dataTable no-footer" id="DataTables_Table_0" role="grid" aria-describedby="DataTables_Table_0_info">
			<thead>
				<tr class="text-c" role="row"><th class="sorting_disabled" rowspan="1" colspan="1" aria-label="合同字母编号" style="width:180px;"><input type = "checkbox" name = "checkAll" id = "checkAll"></th>
					<th class="sorting_desc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="descending" aria-label="合同数字编号: 升序排列" style="width: 180px;">序号</th>
					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="销售单号: 升序排列" style="width: 280px;">房间名称</th>
<!-- 					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="最终用户: 升序排列" style="width: 280px;">项目编号</th> -->
					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="最终用户: 升序排列" style="width: 300px;">楼层</th>
					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="最终用户: 升序排列" style="width: 300px;">房间状态</th>
					<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="采购方" style="width:180px;">户型名称</th>
					<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="采购方" style="width:180px;">楼栋名称</th>
					<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="采购方" style="width:180px;">项目名称</th>
					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="最终用户: 升序排列" style="width: 300px;">单元号</th>
					<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="最终用户: 升序排列" style="width: 300px;">用途名称</th>
				  </tr>
			</thead>
          <tbody>          
          		<c:forEach items="${list}" var="room" varStatus="stat">
          				<tr class="text-c odd" role="row">
						<td><input type = "checkbox" name ="checkbox" id = "${room.roomId}" onchange="selectPorjectId()" /></td>
						<td class="sorting_1">${stat.index+1}</td>
                    <td>${room.roomCode}</td>
                    <td>${room.wdHtUnit.wdHtProject.projectName}</td>
                    <td>${room.wdHtUnit.wdHtBuild.buildName}</td>
                    <td>${room.wdHtUnit.unitCode}</td>
                     <td>${room.floor}</td>
                    <td>${room.wdApartmentLayout.apartmentLayout}</td>
                    <td>${room.wdPurpose.purpose}</td>
                    <c:if test="${room.state==3}"><td>未开盘</td></c:if>
                    <c:if test="${room.state==4}"><td>待审核</td></c:if>
                    <c:if test="${room.state==5}"><td>审核通过</td></c:if>
			    	</tr>
          		</c:forEach>     
		    </tbody>
		</table>
		</div>
	</div>
</div>
	<footer class="footer mt-20">
	<div class="container">
		Copyright ©       本后台系统由KEG提供技术支持
	</div>
    </footer>
<script type="text/javascript" src="../secondCSS/jquery.min.js"></script> 
<script type="text/javascript" src="../secondCSS/layer.js"></script>
<script type="text/javascript" src="../secondCSS/laypage.js"></script> 
<script type="text/javascript" src="../secondCSS/WdatePicker.js"></script> 
<script type="text/javascript" src="../secondCSS/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../secondCSS/H-ui.js"></script><a href="javascript:void(0)" class="Hui-iconfont toTop" title="返回顶部" alt="返回顶部" style="display:none"></a> 
<script type="text/javascript" src="../secondCSS/H-ui.admin.js"></script> 
<script type="text/javascript">
$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0,4]}// 制定列不参与排序
	]
});

function deleteSelect(roomId){
	var roomIdSelect = "";
	if(roomId!=null){
		roomIdSelect = roomId;
	}else{
		var obj = document.getElementsByName("checkbox");	
		for(i in obj){
			if(obj[i].checked){
				roomIdSelect += obj[i].id+","
			}
		}
		roomIdSelect = roomIdSelect.substr(0,roomIdSelect.length-1);
	}
	location.href = "../room/roomDelete.do?roomId="+roomIdSelect;
	
}



/*系统-栏目-添加*/
function system_category_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*系统-栏目-编辑*/
function system_category_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*系统-栏目-删除*/
function system_category_del(title,url,id,w,h){
	layer_show(title,url,w,h);
}
</script>

</body></html>